.wos-folder-common-dialog {
  .dialog-header {
    font-size: 14px;
    color: var(--el-text-color-primary);
  }

  .dialog-body {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    height: 480px;
    background-color: var(--wos-box-center-bg);
    border: solid 1px var(--wos-box-border-color);
    border-radius: 3px;

    &--breadcrumb {
      display: flex;
      align-items: center;
      width: 100%;
      height: 40px;
      padding: 0 16px;
      overflow: hidden;
      font-size: 12px;
      line-height: 40px;
      border-bottom: 1px solid var(--wos-box-border-color);

      .el-breadcrumb {
        display: flex;
        align-items: center;

        .el-breadcrumb__inner {
          max-width: 100px;
          overflow: hidden;
          font-size: 12px;
          text-overflow: ellipsis;
          white-space: nowrap;
          cursor: pointer;

          &:hover {
            color: var(--el-color-primary);
          }
        }
      }
    }

    &--list {
      flex: 1;
      overflow: auto;

      .layout-list {
        height: 100%;
        overflow: auto;

        .hor-minimalist-b {
          width: 100%;
          font-size: 12px;
          text-align: left;
          border-collapse: collapse;
          background-color: var(--el-table-bg-color);

          th {
            position: sticky;
            top: 0;
            z-index: 2;
            height: 28px;
            padding: 4px 6px;
            font-size: 14px;
            font-weight: 700;
            line-height: 28px;
            background-color: var(--el-table-header-bg-color);
            border-bottom: 1px solid var(--wos-box-border-color);

            &.sort {
              cursor: pointer;

              .th {
                position: relative;
                width: 100%;
                height: 100%;

                svg {
                  position: absolute;
                  top: -6px;
                  left: calc(50% - 8px);
                  color: var(--el-color-info);
                }
              }
            }
          }

          tr {
            height: 32px;
            background-color: var(--el-table-tr-bg-color);

            &:nth-child(even) {
              background-color: var(--el-fill-color-lighter);
            }
          }

          td {
            padding: 4px 6px;
            color: var(--el-text-color-regular);
            border-bottom: 1px solid var(--wos-border-color);

            &.checkbox {
              text-align: center;
            }

            .title {
              display: flex;
              gap: 2px;
              align-items: center;
              cursor: pointer;

              .name {
                display: -webkit-box;
                width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                -webkit-line-clamp: 1;
                -webkit-box-orient: vertical;
              }

              svg {
                width: 1.1rem;
                height: 1.1rem;

                &.folder {
                  color: var(--wos-folder-color);
                }

                &.file {
                  color: var(--el-color-primary-light-3);
                }
              }
            }

            .action {
              display: flex;
              gap: 8px;
              align-items: center;

              .el-button.btn-remark {
                width: 100px;

                span {
                  display: block;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                }
              }
            }
          }

          tbody {
            height: 100%;
            overflow: hidden;

            &:hover {
              overflow: auto;
            }
          }

          tbody tr:hover {
            background-color: var(--el-table-row-hover-bg-color);

            td {
              color: var(--wos-folder-hover-color);

              .name {
                svg {
                  color: var(--wos-folder-hover-color);
                }
              }
            }
          }
        }
      }
    }

    &--grid {
      display: grid;
      flex: 1;
      grid-gap: 8px;
      justify-content: space-between;
      min-height: 0;
      padding: 8px;
      overflow: auto;

      .grid-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: fit-content;
        padding: 8px;
        font-size: 12px;
        cursor: pointer;
        border: 1px solid transparent;
        border-radius: var(--radius);

        svg {
          color: var(--wos-folder-color);
        }

        .name {
          display: -webkit-box;
          width: 100%;
          overflow: hidden; //超出的文本隐藏
          line-height: 18px;
          text-align: center;
          text-overflow: ellipsis;
          -webkit-line-clamp: 1; // 设置从第几行后开始省略
          cursor: pointer;
          -webkit-box-orient: vertical;
        }

        &:hover {
          background-color: rgb(0 0 0 / 12%);

          svg,
          .name {
            color: var(--wos-icon-item-hover-color);
          }
        }
      }

      &.small {
        grid-template-columns: repeat(auto-fill, 104px);

        .grid-item {
          width: 104px;

          svg {
            width: 5rem;
            height: 5rem;
          }
        }
      }
    }
  }
}
